home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1301_slow_NFS_server.rtf < prev    next >
Text File  |  1995-06-12  |  2KB  |  47 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
  2. \paperw11760
  3. \paperh7200
  4. \margl120
  5. \margr120
  6. {\colortbl;\red84\green84\blue84;\red83\green83\blue83;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q:  Why is the performance of my file server so poor?  The load is high and rpc.mountd is taking up large chunks of CPU time.\
  8. \
  9. A:  There is a file called /etc/rmtab, which contains statistics about remotes mounts.  See the man page rmtab(5) for details.  When an NFS client crashes, it does not remove its entry in this file and so as more NFS clients crash, the file /etc/rmtab on the file server grows without bound.  Eventually things break or slow down severely.  Notable symptoms are:\
  10. \
  11.  
  12. \fi-980\li980 •    The file /etc/rmtab is large—there should only be one line for each NFS client mounting a file system.\
  13. \
  14. •    High %CPU (e.g., higher than any other process) value as shown by ps -aux:\
  15. \
  16.  
  17. \f1\fs24     nfsserver%    
  18. \b ps -aux | grep mount
  19. \b0 \
  20.  
  21. \fi0\li0     USER       PID  %CPU %MEM VSIZE RSIZE TT STAT  TIME COMMAND\
  22.     root       276  19.6  1.4 1.23M  224K ?  S     0:00 rpc.mountd\
  23.  
  24. \f0\fs28\fi-980\li980     ...\
  25. \
  26. •    High load values on the server immediately following multiuser boot.\
  27. \
  28. •    Home directories not mounting properly.\
  29. \
  30. The fix is as follows:\
  31. \
  32. 1)    Boot the machine in single-user mode.\
  33. 2)    Empty the file /etc/rmtab (e.g., 
  34. \f1\fs24 cat /dev/null > /etc/rmtab
  35. \f0 ).
  36. \fs28 \
  37. 3)    Reboot.\
  38.  
  39. \fi0\li0 \
  40. This solves the problem.\
  41. \
  42. QA565\
  43. \
  44. Valid for 1.0, 2.0,3.0,3.1\
  45. \
  46.  
  47.